<template>
  <div>
    <!-- <p>{{ num }}</p>
    <button @click="edit">点击改变</button>
    <Lx :name="name" /> -->
    <Day2 />
  </div>
</template>

<script setup>
import { ref, watchEffect } from "vue";
// import Lx from "./components/lx.vue";
import Day2 from "./day2.vue";

let num = ref(10);
let name = ref("张三");
function edit(params) {
  console.log(11);
  num.value = "20";
}

watchEffect(() => {
  console.log(name.value);
  let names = name.value;
  console.log(names, "11");
});
</script>

<style>
</style>
